# sudo sshfs bandoine@bandoine.hd.free.fr:/ /mnt/test2/
import subprocess

cmd = ['sshfs','bandoine@bandoine.fr:/','/mnt/test2','-oallow_other','-opassword_stdin']
print cmd
mount = subprocess.Popen(cmd,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE ,shell=False)
mount.stdin.write('Leshow!')
stdout,stderr = mount.communicate()
print stdout
print stderr
